import 'package:flutter/material.dart';
import 'package:xindong/common/xindong_sezhi.dart';
import 'package:xindong/models/gift/xindong_gift_receive_class.dart';
import 'package:xindong/utils/xindong_image_util.dart';

class XinDongKongJianInfoGiftItem extends StatelessWidget {
  final XinDongGiftReceiveClass model;
  final Function()? onTap;

  const XinDongKongJianInfoGiftItem({super.key, required this.model, this.onTap});

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        const SizedBox(height: 8.0),
        ImageUtil.networkImageUrl(model.preview, width: 46, height: 46),
        const SizedBox(height: 8.0),
        Text(
          model.name,
          style: const TextStyle(fontSize: 13, color: DZColors.contentColor),
        ),
        Text(
          "x${model.num}",
          style: const TextStyle(fontSize: 13, color: DZColors.contentColor),
        ),
      ],
    );
  }
}
